package com.example.controller;

import com.example.entity.Center;
import com.example.service.BaseService;
import com.example.service.CenterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@RequestMapping("/center")
public class CenterController {

    @Autowired
    private CenterService centerService;

    @RequestMapping("/query")
    public void query(Center center) throws Exception {
        List<Center> centerList = centerService.query(center);

    }


}
